trivial-httpd: flush after writing the port to stdout
authorOwen W. Taylor <otaylor@fishsoup.net>
Mon, 5 May 2014 22:58:01 +0000 (18:58 -0400)
committerOwen W. Taylor <otaylor@fishsoup.net>
Mon, 5 May 2014 23:02:59 +0000 (19:02 -0400)
commit466671407de87cc366b4cb5c590d108a5516e30d
treef5ebdf0523ea06c395b84c473614df51eed6bedf
parent25ad4a9f65a5dae9348fd38c7f4b8b0df1f9773a
trivial-httpd: flush after writing the port to stdout

The option --port-file=- is most useful when the stdout of the daemon
is programatically redirected and not going to a terminal. The
flush-after-a-line behavior of stdout is specific to terminals, so
we need an explicit flush.

https://bugzilla.gnome.org/show_bug.cgi?id=729609
src/ostree/ot-builtin-trivial-httpd.c